﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest_News";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	Business.Platform.Dictionary BDictionary = new Business.Platform.Dictionary();
	Business.Platform.WorkFlow BWorkFlow = new Business.Platform.WorkFlow();
	Business.Platform.WorkFlowTask BWorkFlowTask = new Business.Platform.WorkFlowTask();
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Platform/WorkFlow/FormDesigner/Forms/Public/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Platform/WorkFlow/FormDesigner/Forms/Public/common.js" type="text/javascript" ></script>
<script src="~/Scripts/ueditor/ueditor.config.js" type="text/javascript" ></script>
<script src="~/Scripts/ueditor/ueditor.all.min.js" type="text/javascript" ></script>
<script src="~/Scripts/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" ></script>
<script src="~/Scripts/ueditor/ueditor-patch-149.js" type="text/javascript" ></script>
<input type="hidden" id="Form_HasUEditor" name="Form_HasUEditor" value="1" />
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest_News.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest_News" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(BWorkFlow.GetFieldStatus(FlowID, StepID));
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest_News", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p style="text-align: center;"><strong><span style="font-size: 24px;"><br/></span></strong></p><p style="text-align: center;"><strong><span style="font-size: 24px;">新闻发布</span></strong></p><p><br/></p><table class="flowformtable" cellpadding="0" cellspacing="1"><tbody><tr class="firstRow"><td style="word-break: break-all;" valign="top" width="1108">当前步骤：<span style="font-size:12px; color:#000000;">@Html.Raw(BWorkFlow.GetStepName(StepID.ToGuid(), FlowID.ToGuid(), true))</span> <input id="TempTest_News.UserID" name="TempTest_News.UserID" type1="flow_hidden" value="u_@Business.Platform.Users.CurrentUserID.ToString()" type="hidden"/></td></tr><tr><td style="word-break: break-all;" valign="top" width="1108">新闻标题：<input class="mytext" isflow="1" title="" id="TempTest_News.Title" type1="flow_text" name="TempTest_News.Title" value="" style="width:80%" maxlength="500" valuetype="0" type="text"/></td></tr><tr><td style="word-break: break-all;" valign="top" width="1108">内容概要：<textarea isflow="1" type1="flow_textarea" id="TempTest_News.Title1" name="TempTest_News.Title1" class="mytext" style="width:80%;height:50px" maxlength="1000"></textarea></td></tr><tr><td style="word-break: break-all;" valign="top" width="1108">新闻类别：<select class="myselect" id="TempTest_News.Type" name="TempTest_News.Type" isflow="1" type1="flow_select"><option value="0">企业动态</option><option value="1">媒体报道</option><option value="2">业界动态</option></select></td></tr><tr><td style="word-break: break-all;" valign="top" width="1108"><p>新闻内容：</p><p><textarea isflow="1" model="html" type1="flow_textarea" id="TempTest_News.Contents" name="TempTest_News.Contents" class="mytextarea" style="width:99%;height:300px">@Html.Raw(BWorkFlow.GetFromFieldData(initData, "TempTest_News","Contents"))</textarea></p></td></tr></tbody></table><p><br/></p>